﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AndreySmirnov.BLToolkitUtils.VSPackage.Model.Config;

namespace AndreySmirnov.BLToolkitUtils.VSPackage.Model.ViewModel
{
    public class CodeGenerationSettingsViewModel : ViewModelBase
    {
        private BLTCodeGenerationSettings m_settings;
        public BLTCodeGenerationSettings Settings
        {
            get { return m_settings; }
            set
            {
                m_settings = value;
                NotifyAllPropsChanged();
            }
        }

        public bool GenerateFields
        {
            get { return Settings.GenerateFields; }
            set
            {
                Settings.GenerateFields = value;
                NotifyPropertyChange("GenerateFields");
            }
        }

        public bool GenerateWCFDataContract
        {
            get { return Settings.GenerateWCFDataContract; }
            set
            {
                Settings.GenerateWCFDataContract = value;
                NotifyPropertyChange("GenerateWCFDataContract");
            }
        }

        public bool GenerateAssociations
        {
            get { return Settings.GenerateAssociations; }
            set
            {
                Settings.GenerateAssociations = value;
                NotifyPropertyChange("GenerateAssociations");
            }
        }
    }
}
